home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SAS User Commands SAS
-
-
-
- NNAAMMEE
- sas - SPUR assembler
-
- SSYYNNOOPPSSIISS
- ssaass [ --aa ] [ --LL ]] [[ --pp ]] [[--II_p_a_t_h_n_a_m_e ] [ --oo objfile ] [
- --DD_n_a_m_e[==_d_e_f ] [ --UU_n_a_m_e ] file
-
- DDEESSCCRRIIPPTTIIOONN
- _S_a_s translates assembly code in the named _f_i_l_e into execut-
- able object code in the specified _o_b_j_f_i_l_e.
-
- All undefined symbols in the assembly are treated as global.
-
- The output of the assembly is left in the file _o_b_j_f_i_l_e. If
- the --oo flag is omitted, file _a.._o_u_t is used.
-
- OOPPTTIIOONNSS
- --aa Assemble only. Normally, sas invokes the linker (sld)
- to perform various normalizing tasks (backpatching for-
- ward references, etc.). This switch suppresses that
- pass, leaving the "raw" assembly output in the output
- file. This option is seldom useful except for debug-
- ging the assembler and linker.
-
- --pp Invoke the preprocessor. This runs the preprocessor,
- cpp, over the input file. It is necessary to do so in
- the presence of preprocessor (#) directives.
-
- --ff Allow ``fake'' operation codes that have significance
- to the simulator. By default, these are not allowed.
- Additionally, when the -f switch is on, certain opera-
- tions are given distinguished opcodes so that the simu-
- lator can distinguish them. Without the -f switch they
- are synonyms for other instructions. This option may
- be expected to vanish in the future.
-
- --FF Use the floating-point format of the machine running
- sas. This is useful only if you are going to run a
- simulator on the host upon the result of the assembly.
- This option may be expected to vanish in the future.
-
- --II_p_a_t_h_n_a_m_e
- Include file directory. Add _p_a_t_h_n_a_m_e to the list of
- directories in which to search for ##iinncclluuddee files with
- relative pathnames (not beginning with slash). The
- preprocessor first searches for ##iinncclluuddee files in the
- directory containing _s_o_u_r_c_e_f_i_l_e, then in directories
- named with --II options (if any), and finally, in
- /_u_s_r/_i_n_c_l_u_d_e . The --II switch implies the --pp switch.
-
- --LL Leave local labels starting with `L', the assembler
- usually directs the linker to remove these.
-
-
-
- SPUR Release 1.0 29 May 1988 1
-
-
-
-
-
-
- SAS User Commands SAS
-
-
-
- --DD_n_a_m_e[==_d_e_f
- Define _n_a_m_e for the preprocessor, giving it value _d_e_f,
- if the latter is supplied, and otherwise the null
- string. This switch implies --pp.
-
- --UU_n_a_m_e
- Undefine any initial definition of symbol name for
- cpp(1).
-
- AASSSSEEMMBBLLEERR FFOORRMMAATT
- SPUR assembly language conventions resemble those of `as'
- for the VAX in the Berkeley release. Immediate constants
- begin with `$'. Integer (floating-point, special) register
- operands have the form r_n (f_n, s_n), or may be manifest
- integer expressions.
-
- Numeric local labels are allowed, (re)defined by an integer
- followed by a colon, and referenced as an integer followed
- by `f' (next label defined with this number) or `b' (last
- label defined with this number).
-
- The pseudo-operations `.text1,' `.text2,' `.text3,'
- `.data1,' `.data2,' and `.data3' provide alternate text and
- data assembly regions, which the assembler concatenates
- after the default text and data regions.
-
- The pseudo-operations `.sdata,' `.sdata1,' `.sdata2,'
- `.scomm,' and `.slcomm' are analogous to the operations
- without the initial `s', but place or allocate from the
- shared segment of memory.
-
- The assembler is much more liberal about load-time expres-
- sions. The values of these expressions may involve any
- operands, symbolic or literal, whether or not defined in the
- current assembly. The defining expressions for `.set' sym-
- bols are equally liberal, and all such symbols may be
- exported. The only restriction is that there may not be
- circular dependences in the definition of any symbol. Also,
- certain expressions, such as those associated with `.org' or
- `.space' or those designating registers, must still be mani-
- fest.
-
- SSEEEE AALLSSOO
- sld(1), a.out(5)
-
-
-
-
-
-
-
-
-
-
-
- SPUR Release 1.0 29 May 1988 2
-
-
-
-